﻿#建议保存编码为：bom头 + utf8

$Private:cds目录 = Get-ChildItem -Path "${PSScriptRoot}/" -Directory
foreach ($temp01 in $Private:cds目录)
{
	if (temp01.name -eq 'domains')
	{
		continue
	}

	if (temp01.name -eq 'eds')
	{
		continue
	}

	if (temp01.name -eq 'prefix')
	{
		continue
	}
	Remove-Item -Force -Path $temp01 -Recurse
}

$private:hash = @{
	version_info = "0"
	resources    = @()
}
$private:cds = $private:hash | ConvertTo-Json -Depth 99
Set-Content -LiteralPath "${PSScriptRoot}/cds.json" -Value $private:cds -Encoding utf8NoBOM

& "${PSScriptRoot}/_flashfile.ps1" "${PSScriptRoot}/cds.json"
exit 0

